<template>
  <div>
  state: {{ counterStore.count }}

  
    <button @click="changeState">修改state</button>
   <!-- 展示数据 -->
   轮播数据
   <ul>
   <template v-for="item in homeStore.banners">
    <li>{{item.title}}</li>
   </template>
   </ul>

  </div>
</template>

<script setup>
import useCounter from "@/stores/counter";
import useHome from'@/stores/home'
const counterStore = useCounter();
function changeState(){
    counterStore.increment(10)
}


const homeStore=useHome()
homeStore.fetchHomeMultidate().then((res)=>{
    console.log('请求成功'+res);
})

</script>

<style>
</style>